home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
man
/
cat.1
/
blitspin.1
< prev
next >
Wrap
Text File
|
1995-07-25
|
6KB
|
133 lines
XXXXSSSSccccrrrreeeeeeeennnnSSSSaaaavvvveeeerrrr((((1111)))) XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((11117777----aaaauuuugggg----99992222)))) XXXXSSSSccccrrrreeeeeeeennnnSSSSaaaavvvveeeerrrr((((1111))))
NNNNAAAAMMMMEEEE
blitspin - rotate a bitmap in an interesting way
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
bbbblllliiiittttssssppppiiiinnnn [-display _h_o_s_t:_d_i_s_p_l_a_y._s_c_r_e_e_n] [-foreground _c_o_l_o_r]
[-background _c_o_l_o_r] [-window] [-root] [-mono] [-install]
[-visual _v_i_s_u_a_l] [-bitmap _f_i_l_e_n_a_m_e] [-delay _u_s_e_c_s] [-delay2
_u_s_e_c_s]
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
The _b_l_i_t_s_p_i_n program repeatedly rotates a bitmap by 90
degrees by using logical operations: the bitmap is divided
into quadrants, and the quadrants are shifted clockwise.
Then the same thing is done again with progressively smaller
quadrants, except that all sub-quadrants of a given size are
rotated in parallel. So this takes OOOO((((11116666****lllloooogggg2222((((NNNN)))))))) blits of
size NxN, with the limitation that the image must be square,
and the size must be a power of 2.
OOOOPPPPTTTTIIIIOOOONNNNSSSS
_b_l_i_t_s_p_i_n accepts the following options:
----wwwwiiiinnnnddddoooowwww Draw on a newly-created window. This is the
default.
----rrrrooooooootttt Draw on the root window.
----mmmmoooonnnnoooo If on a color display, pretend we're on a monochrome
display.
----iiiinnnnssssttttaaaallllllll
Install a private colormap for the window.
----vvvviiiissssuuuuaaaallll _v_i_s_u_a_l
Specify which visual to use. Legal values are the
name of a visual class, or the id number (decimal or
hex) of a specific visual.
----bbbbiiiittttmmmmaaaapppp _f_i_l_e_n_a_m_e
The file name of a bitmap to rotate. It need not be
square: it will be padded with the background color.
If unspecified or the string (_d_e_f_a_u_l_t), a builtin
bitmap is used.
If support for the _X_P_M library was enabled at
compile-time, the specified file may be in _X_P_M
format as well as _X_B_M, and thus may be a color
image.
The ****bbbbiiiittttmmmmaaaappppFFFFiiiilllleeeePPPPaaaatttthhhh resource will be searched if the
bitmap name is not a fully-qualified pathname.
Page 1 (printed 6/30/95)
XXXXSSSSccccrrrreeeeeeeennnnSSSSaaaavvvveeeerrrr((((1111)))) XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((11117777----aaaauuuugggg----99992222)))) XXXXSSSSccccrrrreeeeeeeennnnSSSSaaaavvvveeeerrrr((((1111))))
----ddddeeeellllaaaayyyy mmmmiiiiccccrrrroooosssseeeeccccoooonnnnddddssss
How long to delay between steps of the rotation
process, in microseconds. Default is 500000, one-
half second.
----ddddeeeellllaaaayyyy2222 mmmmiiiiccccrrrroooosssseeeeccccoooonnnnddddssss
How long to delay between each 90-degree rotation,
in microseconds. Default is 500000, one-half
second. DDDDIIIISSSSPPPPLLLLAAAAYYYY to get the default host and display
number.
EEEENNNNVVVVIIIIRRRROOOONNNNMMMMEEEENNNNTTTT
XXXXEEEENNNNVVVVIIIIRRRROOOONNNNMMMMEEEENNNNTTTT to get the name of a resource file that
overrides the global resources stored in the
RESOURCE_MANAGER property.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
XXXX(1), xxxxssssccccrrrreeeeeeeennnnssssaaaavvvveeeerrrr(1)
CCCCOOOOPPPPYYYYRRRRIIIIGGGGHHHHTTTT
Copyright c 1992, 1993 by Jamie Zawinski. Permission to
use, copy, modify, distribute, and sell this software and
its documentation for any purpose is hereby granted without
fee, provided that the above copyright notice appear in all
copies and that both that copyright notice and this
permission notice appear in supporting documentation. No
representations are made about the suitability of this
software for any purpose. It is provided "as is" without
express or implied warranty.
AAAAUUUUTTTTHHHHOOOORRRR
Jamie Zawinski <jwz@mcom.com>, 17-aug-92.
Based on SmallTalk code which appeared in the August 1981
issue of Byte magazine.
Page 2 (printed 6/30/95)